package com.gjt.zyglxt.dao;
import com.gjt.zyglxt.model.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;



public interface IUsersDao extends JpaRepository<Users,Integer>{

    @Query(value = "select u from users u where u.name=:name and u.pass=:pass and u.status=1",nativeQuery = true)
    Users Login(String name,String pass); 
    
   
}